/**
 * Created by zhaoxk on 2017/2/24.
 */
import React from 'react';
import _ from 'lodash';
import styles from './index.less';

function TitleList({
    title = 'title',
    content = 'content',
    data,
}) {
    return (
        <ul className={styles.normal}>
            {_.map(data, (d, i) => (
                <li
                    key={i}
                >
                    <span>{d[title]}</span>
                    <div>{d[content]}</div>
                </li>
            ))}
        </ul>
    );
}

export default TitleList;
